<?php

namespace Jhub1_Common\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;

/**
 * @ORM\Entity
 * @ORM\Table(name="ofGroupUser")
 */
class OfGroupUser
{
    /**
     * @ORM\Id
     * @ORM\Column(type="string", name="groupName", length=50, nullable=false);
     * @var string
     */
    private $groupName;

    /**
     * @ORM\Id
     * @ORM\Column(type="string", name="username", length=100, nullable=false)
     * @var string
     */
    private $username;

    /**
     * @ORM\Id
     * @ORM\Column(type="integer", name="administrator", nullable=false)
     * @var integer
     */
    private $administrator;

    public function getGroupName()
    {
        return $this->groupName;
    }

    public function setGroupName($val)
    {
        $this->groupName = $val;
    }

    public function getUsername()
    {
        return $this->username;
    }

    public function setUsername($val)
    {
        $this->username = $val;
    }

    public function getAdministrator()
    {
        return $this->administrator;
    }

    public function setAdministrator($val)
    {
        $this->administrator = $val;
    }
}

/*CREATE TABLE ofGroupUser
(
    groupName VARCHAR(50) NOT NULL,
    username VARCHAR(100) NOT NULL,
    administrator TINYINT NOT NULL,
    PRIMARY KEY ( groupName, username, administrator )
);*/
